package com.smartcommunity.entity.ac;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.Date;

/**
 * @Author: JiangM
 * @Date: 2018/1/20
 * @Description: 门禁设备对象
 * @Modified By:
 */
@ApiModel
@Data
public class AccessDevice{

    @NotBlank
    @ApiModelProperty(value = "UUID", name = "id")
    private String id;

    @ApiModelProperty(value = "设备唯一标识", name = "deviceId")
    private String deviceId;

    @ApiModelProperty(value = "小区code", name = "villageCode")
    private String villageCode;

    @ApiModelProperty(value = "小区名称", name = "villageName")
    private String villageName;

    @ApiModelProperty(value = "设备类型", name = "deviceType")
    private Integer deviceType;

    @ApiModelProperty(value = "设备类型名称", name = "deviceTypeCN")
    private String deviceTypeCN;

    @ApiModelProperty(value = "设备名称", name = "deviceName")
    private String deviceName;

    @ApiModelProperty(value = "设备12位16进制Mac地址", name = "mac")
    private String mac;

    @ApiModelProperty(value = "楼栋号", name = "buildingNo")
    private String buildingNo;

    @ApiModelProperty(value = "房屋号", name = "houseNo")
    private String houseNo;

    @ApiModelProperty(value = " 门禁状态码：1-在线 2-离线 3-故障 4-报警 9-其他", name = "state")
    private Integer state;

    @ApiModelProperty(value = "状态描述性", name = "stateDesc")
    private String stateDesc;

    @ApiModelProperty(value = "状态时间", name = "stateTime")
    private Date stateTime;

    @ApiModelProperty(value = "经度", name = "lon")
    private Double lon;

    @ApiModelProperty(value = "纬度", name = "lat")
    private Double lat;

    @ApiModelProperty(value = "海拔高度,单位米", name = "alt")
    private String alt;

    @ApiModelProperty(value = "记录新增或更新时的时间(东八区)", name = "rowTime")
    private Date rowTime;

    @ApiModelProperty(value = "记录入库时间(新增或更新)(东八区)", name = "mrowTime")
    private Date mrowTime;

    @ApiModelProperty(value = "设备图片", name = "picUrl")
    private String picUrl;

    @ApiModelProperty(value = "坐标体系,参考附录字典", name = "coordType")
    private Integer coordType;

    @ApiModelProperty(value = "门禁类型：1.普通门禁机 2.支持人脸开门门禁机", name = "accessType")
    private Integer accessType;
}
